<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ include file="/commons/tag.jsp"%>
<%@ include file="/commons/js/basejs.jsp"%>
<%@ include file="/commons/js/extjs.jsp"%>
<%@ include file="/commons/css/basecss.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en" style="font-size: 100px;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>蜂国云分销</title>
<link rel="shortcut icon" type="image/x-icon"
	href="/css/images/icon.png" />
<link rel="stylesheet" href="/css/yfx_css/index.css" />
<%-- <link rel="stylesheet" href="${jsPath }/sweetAlert/sweetalert.css" type="text/css"/> --%>

</head>
<body id="mainBody" class="easyui-layout">

	<!--顶部导航-->
	<div data-options="region:'north',border:false"
		style="text-align:right;vertical-align:bottom; background:rgb(32, 164, 150); background-repeat:no-repeat;height:64px;background-image:url('${cssPath }/images/fengguo_logo.png');">
		<a style="color: #fff; margin-top: 38px" class="easyui-linkbutton"
			data-options="plain:true" onclick="loginOut('${path}');">
			${userinfo.userName}, 你好 | 注销 </a>
	</div>

	<!-- 主界面左部菜单 -->
	<div data-options="region:'west',split:true,title:'功能导航'"
		style="width: 190px; padding: 0px;">
		<div id="navMenu" class="easyui-accordion"
			data-options="fit:true,border:false,">
			<div id="aa" class="easyui-accordion"
				style="width: 300px; height: 200px;">
			</div>
		</div>
	</div>
	<!-- 主界面中部 -->
	<div data-options="region:'center'" style="overflow-x: hidden">
		<div id="tabs" class="easyui-tabs"
			data-options="fit:true,border:false">
			<div id="tabhome" title="首页">
				<input id="test1" class="easyui-combobox"> <input id="test2"
					class="easyui-combobox">
			</div>
		</div>
	</div>

	<!-- 初始化加载效果 -->
	<div id="loading"
		style="position: absolute; z-index: 1000; top: 0px; left: 0px; width: 100%; height: 100%; background: #E0ECFF; text-align: center; padding-top: 20%;">
		<img src="${cssPath }/images/loading.gif" />
	</div>


	<script type="text/javascript" src="${jsPath }/index.js"
		charset="utf-8"></script>
	<script type="text/javascript" src="${jsPath }/extends/menu-tree.js"
		charset="utf-8"></script>
	<script type="text/javascript" src="${jsPath }/extends/tabs.js"
		charset="utf-8"></script>

	<script type="text/javascript">
		$(function() {
			//var listMenus = "${listMenus[0].label}";
			//console.log(listMenus);
			console.info("${jsPath}");

			/* swal({
				title : '',
				text : '登录成功',
				icon : 'success',
				timer : 1500,
				buttons : false
			}); */

			init_staticDictionaryByFile('${jsPath}', 'test1', 'sex.json');

			var test2 = [ {
				"key" : 0,
				"value" : "0"
			}, {
				"key" : 1,
				"value" : "1"
			} ];
			init_staticDictionary('test2', test2);

		});
		//index页面相对路径
		var path = "${staticPath }";

		window.onresize = function() {
			var width = $(document.body).outerWidth(true);
			var offWidth = width / 1366 * 100;
			$("html").css("font-size", offWidth);
		};

		//使用淡入淡出效果隐藏元素	
		function show() {
			$("#loading").fadeOut("normal", function() {
				$(this).remove();
			});
		}
		var delayTime;
		$.parser.onComplete = function() {
			if (delayTime)
				clearTimeout(delayTime);
			delayTime = setTimeout(show, 500);
		}
	</script>
</body>
</html>